//
//  SettingTableViewCell.m
//  FoodFamily
//
//  Created by Bang-guo on 15/7/3.
//  Copyright (c) 2015年 guoBang. All rights reserved.
//

#import "SettingTableViewCell.h"

@implementation SettingTableViewCell


-(void)writeCell:(NSString *)str {
    
    UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(10, 5, 30, 30)];
    UILabel *lable = [[UILabel alloc] initWithFrame:CGRectMake(50, 5, WIDTH - 40, 30)];
    [self.contentView addSubview:imageV];
    [self.contentView addSubview:lable];
    if ([str isEqualToString:@"我的收藏"]) {

        imageV.image = [UIImage imageNamed:@"collection.png"];
        lable.text = str;
        
        
    }
    if ([str isEqualToString:@"清除缓存"]) {

        imageV.image = [UIImage imageNamed:@"delete.png"];
        lable.text = str;
        
        
    }
    if ([str isEqualToString:@"联系我们"]) {
        
        imageV.image = [UIImage imageNamed:@"aboutUs.png"];
        lable.text = str;
        
        
    }
    
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
